package com.zijin.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zijin.entity.TransferOut1030Account;
import com.zijin.mapper.TransferOut1030AccountMapper;
import com.zijin.service.TransferOut1030AccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 1030人转出账户信息Service实现
 * */
@Service
public class TransferOut1030AccountServiceImpl extends ServiceImpl<TransferOut1030AccountMapper, TransferOut1030Account> implements TransferOut1030AccountService {

    @Autowired
    private TransferOut1030AccountMapper transferOut1030AccountMapper;
    /**
     * 根据卡号查找账户信息
     * */
    @Override
    public List<TransferOut1030Account> findAccountByBankNo(String tradeBankNo) {
        LambdaQueryWrapper<TransferOut1030Account> queryWrapper = Wrappers.<TransferOut1030Account>lambdaQuery();
        queryWrapper.eq(TransferOut1030Account::getTradeBankNo, tradeBankNo);
        List<TransferOut1030Account> transferOut1030Accounts = transferOut1030AccountMapper.selectList(queryWrapper);
        return transferOut1030Accounts;
    }
}
